<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

//Route::get('oauth_callback', 'index/index/oauth_callback');
//Route::get('js_api', 'index/index/js_api');
//Route::post('pay', 'index/pay/create_order');

//Route::rule('user','index/index/user')->middleware('Wechat');
//\Naixiaoxin\ThinkWechat\Middleware\OauthMiddleware::class

Route::resource('article','index/article');
Route::any('service/mch','user/mch');
Route::get('service/mch_info','user/mch_info');
Route::post('service/reset','user/reset');
Route::get('article/like','article/like');
Route::post('comment/save','article/comments');
Route::post('comment/love','article/love');
Route::get('comment/list','article/comment_list');
Route::post('comment/reply','article/reply');
Route::post('comment/list_new','article/clist');
Route::get('comment/can_reply','article/get_reply_list');

Route::post('redpack','pay/redpack');
Route::any('redpack_query','pay/redpack_query');


Route::get('prize/list','prize/get_prize');
Route::get('prize/start','prize/start');

Route::get('article/share','article/share');
Route::post('article/proxy','article/proxy');
Route::post('article/proxy_info','article/proxy_info');

//代理
Route::resource('proxy','index/proxy');



